﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Keleyi.Com.Model;
using Keleyi.Com.KBLL;

namespace Keleyi.Com.KWeb.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "留言板";

            Message k_message = new Message();
            IList<MessageInfo> k_infoList = k_message.GetList();

            ViewBag.Count = k_infoList.Count.ToString();
            return View(k_infoList);
        }

        public ActionResult About()
        {
            ViewBag.Message = "由柯乐义开发";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "请访问官网";

            return View();
        }
    }
}
